home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / BARNET / COMPILER / SATHER / !Sather / Library / IO / config / file next >
Text File  |  1996-01-17  |  727b  |  35 lines

  1. #ifndef FILE_CONFIG
  2. #define FILE_CONFIG
  3.  
  4. #ifdef PP
  5. #undef PP
  6. #endif
  7.  
  8. #ifdef APP
  9. #undef APP
  10. #endif
  11.  
  12. #ifdef FPP
  13. #undef FPP
  14. #endif
  15.  
  16. #ifdef VSTD
  17. #undef VSTD
  18. #endif
  19.  
  20. #define PP    no_pre,no_post
  21. #define VPP    volatile,PP
  22. #define VSTD    var "@r $$;"
  23. #define IST    declare "#include <stdio.h>"
  24.  
  25. FILE_STDIN:    PP,IST,exec "stdin";
  26. FILE_STDOUT:    PP,IST,exec "stdout";
  27. FILE_STDERR:    PP,IST,exec "stderr";
  28. FILE_CLEAR:    VPP,IST,exec "clearerr((FILE *)$0);";
  29. FILE_FWRITE_FSTR: VPP,IST,VSTD,exec "$$=fwrite(((@1)$1)->arr_part,$2,1,$3);" "$$",
  30.           f_exec "$$=p_fwrite(((@1)$1)->arr_part,$2,1,$3);" "$$";
  31. FILE_FWRITE_STR:  VPP,IST,VSTD,exec "$$=fwrite(((@1)$1)->arr_part,$2,1,$3);" "$$",
  32.           f_exec "$$=p_fwrite(((@1)$1)->arr_part,$2,1,$3);" "$$";
  33.  
  34. #endif 
  35.